module.exports = {
    TABLE_NICK_NAME: '学生总成绩表', // 表的昵称
    TABLE_DESC: '按照比例计算出学生的总成绩', // 表的描述
    sp_students_id: {
        type: "input",
        data_type: "VARCHAR(255)",
        attr: {
            type: 'text',
            placeholder: '请输入学号'
        },
        label: "学号",
        rule: {
            MaxLength: 255,
            MinLength: 1,
            NotNull: true,
        },
    },
    sp_students_name: {
        type: "input",
        data_type: "VARCHAR(255)",
        attr: {
            type: 'text',
            placeholder: '请输入学生姓名'
        },
        label: "学生姓名",
        rule: {
            MaxLength: 255,
            MinLength: 1,
            NotNull: true,
        },
    },
    sp_course_id: {
        type: "input",
        data_type: "VARCHAR(255)",
        attr: {
            type: 'text',
            placeholder: '请输入课程ID'
        },
        label: "课程ID",
        rule: {
            MaxLength: 255,
            MinLength: 1,
            NotNull: true,
        },
        unList: true,
    },

    video_score: {
        type: "input",
        data_type: "VARCHAR(255)",
        attr: { type: "text", placeholder: '请输入视频分数' },
        label: "视频分数",
        rule: {
            MaxLength: 255,
            MinLength: 1,
            NotNull: true,
        }
    },
    video_score_percentage: {
        type: "input",
        data_type: "decimal(5,2)",
        attr: { type: "number", placeholder: '请输入视频分数所占比例' },
    },
    practice_score: {
        type: "input",
        data_type: "VARCHAR(255)",
        attr: { type: "text", placeholder: '请输入作业分数' },
        label: "作业分数（占比 12%）",
        rule: {
            MaxLength: 255,
            MinLength: 1,
            NotNull: true,
        }
    },
    practice_score_percentage: {
        type: "input",
        data_type: "decimal(5,2)",
        attr: { type: "number", placeholder: '请输入作业分数所占比例' },
        label: "作业分数占比",
    },
    classroom_score: {
        type: "input",
        data_type: "VARCHAR(255)",
        attr: { type: "text", placeholder: '请输入课堂分数' },
        label: "课堂分数",
        rule: {
            MaxLength: 255,
            MinLength: 1,
            NotNull: true,
        }
    },
    classroom_score_percentage: {
        type: "input",
        data_type: "decimal(5,2)",
        attr: { type: "number", placeholder: '请输入课堂分数所占比例' },
        label: "课堂分数占比",
    },
    final_exam_score: {
        type: "input",
        data_type: "DECIMAL(5,3)",
        attr: { type: "number", placeholder: '请输入期末考试分数' },
        label: "期末考试分数",
        rule: {
            NotNull: true,
        }
    },
    final_exam_score_percentage: {
        type: "input",
        data_type: "decimal(5,2)",
        attr: { type: "number", placeholder: '请输入期末考试分数所占比例' },
        label: "期末考试分数占比",
    },
    report_score: {
        type: "input",
        data_type: "VARCHAR(255)",
        attr: { type: "text", placeholder: '请输入实训报告分数' },
        label: "实训报告分数",
        rule: {
            MaxLength: 255,
            MinLength: 1,
            NotNull: true,
        }
    },
    report_score_percentage: {
        type: "input",
        data_type: "decimal(5,2)",
        attr: { type: "number", placeholder: '请输入实训报告分数所占比例' },
        label: "实训报告分数占比",
    },
    attendance_score: {
        type: "input",
        data_type: "VARCHAR(255)",
        attr: { type: "text", placeholder: '请输入考勤分数' },
        label: "考勤分数（线下模块，占比 3%）",
        rule: {
            MaxLength: 255,
            MinLength: 1,
            NotNull: true,
        }
    },
    attendance_score_percentage: {
        type: "input",
        data_type: "decimal(5,2)",
        attr: { type: "number", placeholder: '请输入考勤分数所占比例' },
        label: "考勤分数占比",
    },
    total_score: {
        type: "input",
        data_type: "VARCHAR(255)",
        attr: { type: "text", placeholder: '请输入总成绩' },
        label: "总成绩",
        rule: {
            MaxLength: 255,
            MinLength: 1,
            NotNull: true,
        }
    },
};